import { Select } from 'antd'
import { useChannels } from '@/hooks/index'
const { Option } = Select

const ArticleSelect = (props) => {
    // console.log(props)
    const channelsList = useChannels()
return <div>
    <Select {...props} placeholder="请选择频道" style={{ width: 200 }}>
    {channelsList.channels.map(it=><Option key={it.id} value={it.id}>{it.name}</Option>)} 
</Select>
</div>
};
export default ArticleSelect